 <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
 <%
  int stuno =Integer.valueOf(session.getAttribute("login").toString());
  if(stuno <=0){
  out.print("<script>alert('您还未登录，请返回登录页面！');location = 'newlogin.jsp';</script>");
  }
  %>
 
